package edu.ynu.se.xiecheng.achitectureclass.device.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.device.entity.Device;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceDAO extends LogicDAO<Device, Long> {
    List<Device> findByGreenhouse_GreenhouseNumber(String greenhouseNumber);
    Device findByDeviceNumber(String deviceNumber);
    List<Device> findByCategory(String category);
}
